/******************************************************************************/
/*  global_def.h                                                              */
/******************************************************************************/

#ifndef __GLOBAL_DEF_H
#define __GLOBAL_DEF_H


/******************************************************************************/
/*      Kernel def                                                            */
/******************************************************************************/
#define TASK_MB_MASTER_RX_PRIORITY     (3)
#define TASK_MODBUS_RX_PRIORITY        (3)
#define TASK_MODEM_PARS_PRIORITY       (3)
#define TASK_MODEM_INCOM_PRIORITY      (4)
#define TASK_MODBUS_POLL_PRIORITY      (15)
#define TASK_MB_MASTER_POLL_PRIORITY   (15)
#define TASK_RFILE_DEV_AGGR_PRIORITY   (16)
#define TASK_PACKET_PRIORITY           (16)
#define TASK_PROC_PRIORITY             (17)
#define TASK_SETPOINT_PRIORITY         (17)
#define TASK_MODEM_POLL_PRIORITY       (18)
#define TASK_TEMP_POLL_PRIORITY        (20)
#define TASK_DIN_POLL_PRIORITY         (21)
#define TASK_AIN_POLL_PRIORITY         (21)
#define TASK_RELAY_POLL_PRIORITY       (21)
#define TASK_TEMP_PROCESS_PRIORITY     (21)
#define TASK_MLOG_TIMER_PRIORITY       (21)
#define TASK_MLOG_WRITE_PRIORITY       (22)
#define TASK_MLOG_SEND_PRIORITY        (23)
#define TASK_DEVICE_SETT_PRIORITY      (23)
#define TASK_PACTION_PRIORITY          (23)
#define TASK_UPDATER_PRIORITY          (23)
#define TASK_RFILE_DISCR_AGGR_PRIORITY (23)
#define TASK_LED_PRIORITY              (25)
#define TASK_HEATER_PRIORITY           (26)


#define MODEM_POLL_STK_SIZE            (128)
#define MODEM_PARS_STK_SIZE            (96)
#define MODEM_INCOM_STK_SIZE           (80)
#define MODBUS_POLL_STK_SIZE           (128)
#define MODBUS_RX_STK_SIZE             (80)
#define MB_MASTER_POLL_STK_SIZE        (80)
#define MB_MASTER_RX_STK_SIZE          (64)
#define PROC_STK_SIZE                  (80)
#define SETPOINT_STK_SIZE              (80)
#define PACKET_STK_SIZE                (96)
#define DEVICE_SETT_STK_SIZE           (80)
#define PACTION_STK_SIZE               (80)
#define UPDATER_STK_SIZE               (64)
#define TEMP_POLL_STK_SIZE             (64)
#define TEMP_PROCESS_STK_SIZE          (64)
#define DIN_POLL_STK_SIZE              (64)
#define AIN_POLL_STK_SIZE              (64)
#define RELAY_POLL_STK_SIZE            (48)
#define LED_STK_SIZE                   (48)
#define HEATER_STK_SIZE                (48)
#define RFILE_DISCR_STK_SIZE           (80)
#define RFILE_DEV_STK_SIZE             (96)
#define MLOG_TIMER_STK_SIZE            (64)
#define MLOG_WRITE_STK_SIZE            (80)
#define MLOG_SEND_STK_SIZE             (128) 


#define MODEM_CMD_DQUE_NUM             (5)
#define MODEM_ANSW_DQUE_NUM            (5)
#define MODEM_INCOM_DQUE_NUM           (5)
#define MB_MASTER_CMD_DQUE_NUM         (1)
#define MB_RX_DQUE_NUM                 (9)
#define DEVICE_SETT_DQUE_NUM           (9)
#define PACTION_DQUE_NUM               (9)
#define UPDATER_DQUE_NUM               (1)
#define MLOG_WRITE_DQUE_NUM            (5)
#define MLOG_SEND_DQUE_NUM             (11)


#define NUM_MEM_BLOCK_20               (11)
#define NUM_MEM_BLOCK_36               (9)
#define NUM_MEM_BLOCK_64               (8)
#define NUM_MEM_BLOCK_128              (4)
#define NUM_MEM_BLOCK_300              (5)
#define NUM_MEM_BLOCK_600              (2)

#define SIZE_MEM_POOL_20               (20)
#define SIZE_MEM_POOL_36               (36)
#define SIZE_MEM_POOL_64               (64)
#define SIZE_MEM_POOL_128              (128)
#define SIZE_MEM_POOL_300              (300)
#define SIZE_MEM_POOL_600              (600)





#endif